package runnable

import applicationModel.Mejora
import dominio.Jugador
import dominio.Planta
import dominio.Zombie
import home.HomeMejoras
import home.HomePlantas
import home.HomeZombies
import org.uqbar.arena.Application
import org.uqbar.arena.windows.Window
import org.uqbar.commons.utils.ApplicationContext
import ui.PlayGame

class PlantsVsZombieApplication extends Application {
	override protected Window<?> createMainWindow() {
		ApplicationContext::instance.configureSingleton(typeof(Zombie), new HomeZombies)
		ApplicationContext::instance.configureSingleton(typeof(Planta), new HomePlantas)
		ApplicationContext::instance.configureSingleton(typeof(Mejora), new HomeMejoras)
		return new PlayGame(this, new Jugador())
	}

	static def main(String[] args) {
		new PlantsVsZombieApplication().start

	}
}
